package app.game.stage;

import puri01.OnNotifyEventListener;
import puri01.ValueList;
import puri01.game.GameControlGroup;
import puri01.game.GamePlatformInfo;
import puri01.game.ImageButton;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.Typeface;
import android.util.Log;
import android.view.Display;
import android.view.MotionEvent;
import android.view.View.OnTouchListener;
import android.view.WindowManager;
import app.game.resource.ResourceBall;
import app.main.R;
import app.menu.PJManager;
import app.menu.ProJect;

public class Count extends GameStage {
	public Count(GameControlGroup gameControlGroup) {
		super(gameControlGroup);
		// TODO Auto-generated constructor stub
	}

	private Canvas _Canvas = null;
	private Paint _Paint = null;
	private Bitmap _Bitmap = null;

	int wal_y = 17;
	int wal_x = 24;

	public static Rect[][] _Wallmap4;

	private ImageButton _btClose = null;

	@Override
	public void doActionIn() {
		
	}

	@Override
	public void doActionOut() {
	}

	@Override
	protected void onStart(GamePlatformInfo platformInfo) {
		_Canvas = platformInfo.getCanvas();
		_Paint = platformInfo.getPaint();
	}

	@Override
	public void onDraw(GamePlatformInfo platformInfo) {
		Display display = ((WindowManager) platformInfo.getGamePlatform()
				.getContext().getSystemService(Context.WINDOW_SERVICE))
				.getDefaultDisplay();
		int width = display.getWidth();
		int height = display.getHeight();

		int x, y, i = 0;
		for (y = 0; y < wal_y - 1; y++) {
			for (x = 0; x < wal_x - 1; x++) {
				_Wallmap4[y][x] = new Rect((x * width), (y * height),
						(x * width) + width, (y * height) + height);
			}
		}
	}
}